package com.itheima.mythread.Demo4;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<Boolean> {
    @Override
    public Boolean call() throws Exception{
        for (int i = 0; i < 10; i++) {
            Thread.sleep(1000);
            System.out.println(Thread.currentThread().getName()+"表白" + i + "次");
        }
        return true;
    }
}
